import requests
pt_key="AAJntUDPADCNwEB0h7Xz5sbCPwEiAb5m0Lub6uXH7idYQeonPkCm9YMfvk7A05hhGzdKebUjcA0"
pt_pin="jd_7c34a135fa55b"

cookie="pt_key={}; pt_pin={}".format(pt_key,pt_pin)
url="https://api.m.jd.com/client.action?functionId=signBeanAct&body=%7B%22fp%22%3A%22-1%22%2C%22shshshfp%22%3A%22-1%22%2C%22shshshfpa%22%3A%22-1%22%2C%22referUrl%22%3A%22-1%22%2C%22userAgent%22%3A%22-1%22%2C%22jda%22%3A%22-1%22%2C%22rnVersion%22%3A%223.9%22%7D&appid=ld";
headers={
    "Content-Type":"application/x-www-form-urlencoded;charset=UTF-8",
    "User-Agent":"okhttp/3.12.1;jdmall;android;version/10.3.4;build/92451;",
    "Cookie":cookie
    }
response=requests.post(url=url,headers=headers)
print(response.text)

res=response.json()
returnMes=""

if(res.get("errorMessage")==None):
    returnMes="签到成功!"
else:
    returnMes="签到失败：{}".format(res.get("errorMessage"))
requests.get("https://sctapi.ftqq.com/SCT168339T9sVZ019rt8Pj1DyKWLvoT6xl.send?title={}".format(returnMes))
